package com.zoanun.zhuinew.pojo;

import java.util.ArrayList;
import java.util.List;

public class User {

	private int id;
	
	private String userName;
	
	private int userGrade;

	private String lastLoginTime;
	
	private List<TiebaInfo> TiebaInfoList = new ArrayList<TiebaInfo>();
	
	public List<TiebaInfo> getTiebaInfoList() {
		return TiebaInfoList;
	}

	public void setTiebaInfoList(List<TiebaInfo> TiebaInfoList) {
		this.TiebaInfoList = TiebaInfoList;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getUserGrade() {
		return userGrade;
	}

	public void setUserGrade(int userGrade) {
		this.userGrade = userGrade;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	
	public TiebaInfo getTieba(String tiebaName){
		for(TiebaInfo info : TiebaInfoList){
			if(info.getTiebaName().equals(tiebaName)){
				return info;
			}
		}
		return null;
	}
}
